package com.kaka.bus.view.dialog;

import android.content.Context;
import android.support.annotation.NonNull;
import android.widget.TextView;

import com.kaka.bus.R;

/**
 * Created by OnionMac on 2018/1/13.
 */

public class IOSDialog extends BaseDialog {

    public static final int TYPE_SINGLE = 1;
    public static final int TYPE_TWO = 2;
    private TextView mTitle;
    private TextView mRight;
    private TextView mLeft;
    private TextView mSingle;
    private TextView mMessage;

    public IOSDialog(@NonNull Context context) {
        super(context);
    }

    @Override
    protected int getLayoutId() {
        return R.layout.dialog_ios;
    }

    @Override
    protected void initView() {
        mTitle = findViewById(R.id.dialog_ios_title);
        mMessage = findViewById(R.id.dialog_ios_message);
        mLeft = findViewById(R.id.dialog_ios_left);
        mRight = findViewById(R.id.dialog_ios_right);
        mSingle = findViewById(R.id.dialog_ios_single);
    }

    @Override
    protected int getWindowAnim() {
        return R.style.ios＿dialog_anim;
    }

    @Override
    protected int moveY() {
        return -20;
    }

    @Override
    protected double getWidthPer() {
        return 0.5;
    }
}
